package com.uzai.console.dto.cms.activity;

import com.uzai.console.dto.QueryParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author liuqi
 * @date 2021年08月26日 14:31
 */
@ApiModel("CMS活动列表查询参数")
public class CmsActivityQuery extends QueryParam {
    @ApiModelProperty("活动名称")
    private String name;

    @ApiModelProperty("活动类型(tb-淘宝;pdd-拼多多;jd-京东;vph-唯品会;local_live-本地生活)")
    private String type;

    @ApiModelProperty("来源(0-该运营商的自主活动和官方活动; 1-自主活动；2-官方活动;")
    private Integer source;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getSource() {
        if(source == null){
            source = 0; //默认查询运营商自主活动和官方活动
        }
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }
}
